package com.eh.factory.factoryMethod;

import com.eh.factory.factoryMethod.pizza.Pizza;
import com.eh.factory.factoryMethod.store.NYPizzaStore;
import com.eh.factory.factoryMethod.store.PizzaStore;

/**
 * Created by David on 2016/4/26.
 */
public class PizzaTestDrive {
    public static void main(String[] args) {
        PizzaStore nyStore = new NYPizzaStore();
        Pizza nyPizza = nyStore.orderPizza("cheese");
        System.out.printf("You have order [%s].", nyPizza.getName());
    }
}
